 function text(){
    var login = document.getElementById('login').value;
    var mdp = document.getElementById('pwd').value;
    
    if( 
    ( login == 'dhaouia')  && (mdp=="dha")  ||
    ( login == 'sybille')  && (mdp=="syb")  ||
    ( login == 'manel')  && (mdp=="man")      
    ) window.location = "./mairie/accueil.xhtml";                       
   
    else if( 
    ( login == 'kevin')  && (mdp=="kev")  ||
    ( login == 'stebou')  && (mdp=="ste")     
    ) window.location = "./famille/accueil.xhtml";
    
    else if  (
     ( login == '')||(mdp=="")
    ) alert("Merci de remplir tous les champs");
         
    else alert("identifiants inconnus");
  } 
 
 